Skip to content

feat(vue): Set navigation.route.id from the route name#22372

Draft
msonnb wants to merge 1 commit into
developfrom
ms/vue-navigation-route-id
Draft

feat(vue): Set navigation.route.id from the route name#22372
msonnb wants to merge 1 commit into
developfrom
ms/vue-navigation-route-id

Conversation

@msonnb

@msonnb msonnb commented Jul 17, 2026

Copy link
Copy Markdown
Member

Sets the navigation.route.id attribute on pageload and navigation spans, sourced from the Vue Router route name (to.name).

ref #22069

Sets the navigation.route.id attribute (from @sentry/conventions) on
pageload and navigation spans, sourced from the Vue Router route name
(to.name). This is the framework-assigned route identifier, which Relay
prefers over url.template for span description inference.

The attribute is set independently of the routeLabel option: routeLabel
only controls the span name/source, whereas the route id identifies the
route regardless. This is most valuable when to.name drives the span
(source 'custom'), where url.template is not set today, so
navigation.route.id becomes the only structured route identifier.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

Path Size % Change Change
@sentry/browser 27.75 kB - -
@sentry/browser - with treeshaking flags 26.18 kB - -
@sentry/browser (incl. Tracing) 46.56 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 48.37 kB - -
@sentry/browser (incl. Tracing, Profiling) 51.36 kB - -
@sentry/browser (incl. Tracing, Replay) 85.83 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 75.46 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 90.55 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 103.2 kB - -
@sentry/browser (incl. Feedback) 44.93 kB - -
@sentry/browser (incl. sendFeedback) 32.55 kB - -
@sentry/browser (incl. FeedbackAsync) 37.69 kB - -
@sentry/browser (incl. Metrics) 28.83 kB - -
@sentry/browser (incl. Logs) 29.05 kB - -
@sentry/browser (incl. Metrics & Logs) 29.76 kB - -
@sentry/react 29.54 kB - -
@sentry/react (incl. Tracing) 48.84 kB - -
@sentry/vue 33.17 kB - -
@sentry/vue (incl. Tracing) 48.52 kB +0.04% +16 B 🔺
@sentry/svelte 27.78 kB - -
CDN Bundle 30.14 kB - -
CDN Bundle (incl. Tracing) 48.53 kB - -
CDN Bundle (incl. Logs, Metrics) 31.73 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 49.83 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 70.98 kB - -
CDN Bundle (incl. Tracing, Replay) 86.04 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 87.34 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 91.84 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 93.11 kB - -
CDN Bundle - uncompressed 89.88 kB - -
CDN Bundle (incl. Tracing) - uncompressed 146.73 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 94.59 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 150.71 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 219.32 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 265.94 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 269.9 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 279.64 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 283.6 kB - -
@sentry/nextjs (client) 51.36 kB - -
@sentry/sveltekit (client) 46.99 kB - -
@sentry/core/server 78.65 kB - -
@sentry/core/browser 65.08 kB - -
@sentry/node-core 63.21 kB - -
@sentry/node 125.54 kB - -
@sentry/node (incl. diagnostics channel injection) 148.49 kB - -
@sentry/node/import (ESM hook with diagnostics-channel injection) 70.03 kB - -
@sentry/node/light 51.32 kB +0.01% +1 B 🔺
@sentry/node - without tracing 74.71 kB +0.01% +2 B 🔺
@sentry/aws-serverless 83.95 kB - -
@sentry/cloudflare (withSentry) - minified 184 kB - -
@sentry/cloudflare (withSentry) 455.41 kB - -

View base workflow run

@msonnb

msonnb commented Jul 17, 2026

Copy link
Copy Markdown
Member Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit c098258. Configure here.

@msonnb msonnb changed the title feat(vue): Set navigation.route.id from the Vue Router route name feat(vue): Set navigation.route.id from the route name Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant